package com.person.controller;

import com.person.model.entity.Result;
import com.person.service.ComplaintBaseInfoService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/complaint_base_info")
public class ComplaintBaseInfoController {

    @Resource
    private ComplaintBaseInfoService complaintBaseInfoService;

    @GetMapping("/getById/{id}")
    public Result getById(@PathVariable Integer id) {
        return Result.success(complaintBaseInfoService.getComplaintBaseInfoById(id));
    }
}
